package com.scuec.trainingmanagementsys.service;

import com.scuec.trainingmanagementsys.entity.Discussion;
import java.util.List;

public interface DiscussionService {
    List<Discussion> getAllDiscussions();
    Discussion getDiscussionById(Integer discussionId);
    int deleteDiscussion(Integer discussionId);

    // 根据教师的teacherNumber查询公告
    List<Discussion> findByStudentId(String studentId);
    List<Discussion> findDiscussionsByStudentNumber(String studentNumber);
    int insertDiscussion(Discussion discussion);

    // 根据教师编号查询讨论
    List<Discussion> findDiscussionsByTeacherNumber(String teacherNumber);

    // 教师添加讨论
    int insertDiscussionByTeacher(Discussion discussion);

    int deleteTeacherDiscussion(Integer discussionId);
}